import axios from '@/utils/request'
// import store from '@/store'

// 获取用户已选频道
export const userChannel = () => axios({
  url: '/v1_0/user/channels'
})

// 获取所有频道
export const allChannel = () => axios({
  url: '/v1_0/channels'
})

// 获取文章列表
export const getArticleList = params => axios({
  url: '/v1_1/articles',
  params
})

// 文章-不感兴趣
export const dislike = data => axios({
  url: '/v1_0/article/dislikes',
  method: 'post',
  data
})

// 文章-举报
export const reports = data => axios({
  url: '/v1_0/article/reports',
  method: 'post',
  data
})

// 更新数据
export const updateChannel = data => axios({
  url: '/v1_0/user/channels',
  method: 'PUT',
  data
})
